﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditMenu.aspx.cs" Inherits="WXWeb.Admin.EditMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="<%= ResolveUrl("~/jquery-easyui-1.2.6/themes/"+Skin+"/easyui.css") %>"
        rel="stylesheet" type="text/css" />
    <link href="../jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Content/js/sysEasyUI.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
        .style1
        {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #E2EEF3;
        }
        .style1 tr td
        {
            border: 1px solid #E2EEF3;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#btnOK").click(btnOK);

            $('#SIcons').combo({
                required: true,
                editable: false
            });
            $('#divIcons').appendTo($('#SIcons').combo('panel'));
            var icon = $("#txtMenuIcon").val();
            $('#divIcons input').click(function () {
                var v = $(this).val();
                var s = $(this).next('span').text();
                $("#txtMenuIcon").val(v);
                $('#SIcons').combo('setValue', v).combo('setText', s).combo('hidePanel');
            });
            var a = $("input[type=radio][value=" + icon + "]");
            if (a != undefined) a.click();
        });
        function btnOK() {
            var aa = $("#Button1 ");
            $("#Button1 ").click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="">
        <table cellpadding="0" class="style1">
            <tr>
                <td>
                    菜单名称
                </td>
                <td>
                    <asp:TextBox ID="txtMenuName" runat="server" required="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    菜单图标
                </td>
                <td>
                    <asp:TextBox ID="txtMenuIcon" runat="server" style="display:none;"></asp:TextBox>
                    <select id="SIcons" class="easyui-combobox" style="width:154px">
                    </select>
                    <div id="divIcons">
                        <div style="color: #99BBE8; background: #fafafa; padding: 5px;">
                            请选择图标</div>
                        <input type="radio" name="lang" value="fa fa-adn" selected><span>fa-adn</span><br />
                        <input type="radio" name="lang" value="fa fa-android"><span>fa-android</span><br />
                        <input type="radio" name="lang" value="fa fa-apple"><span>fa-apple</span><br />
                        <input type="radio" name="lang" value="fa fa-bitbucket"><span>fa-bitbucket</span><br />
                        <input type="radio" name="lang" value="fa fa-bitbucket-square"><span>fa-bitbucket-square</span><br />
                        <input type="radio" name="lang" value="fa fa-bitcoin"><span>fa-bitcoin</span><br />
                        <input type="radio" name="lang" value="fa fa-btc"><span>fa-btc</span><br />
                        <input type="radio" name="lang" value="fa fa-css3"><span>fa-css3</span><br />
                        <input type="radio" name="lang" value="fa fa-facebook"><span>fa-facebook</span><br />
                        <input type="radio" name="lang" value="fa fa-dropbox"><span>fa-dropbox</span><br />
                        <input type="radio" name="lang" value="fa fa-facebook-square"><span>fa-facebook-square</span><br />
                        <input type="radio" name="lang" value="fa fa-flickr"><span>fa-flickr</span><br />
                        <input type="radio" name="lang" value="fa fa-foursquare"><span>fa-foursquare</span><br />
                        <input type="radio" name="lang" value="fa fa-github"><span>fa-github</span><br />
                        <input type="radio" name="lang" value="fa fa-github-alt"><span>fa-github-alt</span><br />
                        <input type="radio" name="lang" value="fa fa-github-square"><span>fa-github-square</span><br />
                        <input type="radio" name="lang" value="fa fa-gittip"><span>fa-gittip</span><br />
                        <input type="radio" name="lang" value="fa fa-google-plus"><span>fa-google-plus</span><br />
                        <input type="radio" name="lang" value="fa fa-google-plus-square"><span>fa-google-plus-square</span><br />
                        <input type="radio" name="lang" value="fa fa-html5"><span>fa-html5</span><br />
                        <input type="radio" name="lang" value="fa fa-instagram"><span>fa-instagram</span><br />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    菜单地址
                </td>
                <td>
                    <asp:TextBox ID="txtMenuUrl" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="slider-h">
                    创建时间
                </td>
                <td class="slider-h">
                    <asp:TextBox ID="txtCreateTime" runat="server" class="easyui-datebox" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    修改时间
                </td>
                <td>
                    <asp:TextBox ID="txtUpdateTime" runat="server" class="easyui-datebox" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    排序
                </td>
                <td>
                    <asp:TextBox ID="txtSequnce" runat="server" required="true" validType="number"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <a href="#" class="easyui-linkbutton" iconcls="icon-save" id="btnOK">保存</a>
                    <asp:Button ID="Button1" runat="server" Text="保存" Style="display: none;" OnClick="Button1_Click"  />
                    <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" id="btnCancel" onclick="closeDialog()">
                        取消</a>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
